package com.ft.web.model;

import com.ft.core.utils.StringUtils;

/**
 * @copyright (C), 2015-2019, 梵途科技有限公司
 * @fileName: ErrorResponse
 * @author: 李阳
 * @date: 2019/4/17 17:12
 * @description: 错误响应类
 */
public class ErrorResponse extends AbstractResponse {
    private static final long serialVersionUID = -1392630219251212851L;

    @Override
    public Boolean getSuccess() {
        return false;
    }

    @Override
    public String getMsg() {
        if (StringUtils.isNullOrBlank(super.getMsg())) {
            return "操作失败";
        }
        return super.getMsg();
    }
}
